<template>
 <div class="contatiner">
   <global-header :user="currentUser"></global-header>
  <column-list :list="list"></column-list>
 
 </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import 'bootstrap/dist/css/bootstrap.min.css'
import ColumnList,{ColumnProps} from './components/ColumnList.vue'
import GlobalHeader,{UserProps} from './components/GlobalHeader.vue'
const currentUser:UserProps={
  isLogin:true,
  name:'lotzinfly'
}
const testData:ColumnProps[]=[
  {
    id:1,
    title:'text1的专栏',
    description:'这是的test1专栏，有一段非常有意思的简介，可以更新一下欧',
    avatar:'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
  },
   {
    id:2,
    title:'text2的专栏',
    description:'这是的test1专栏，有一段非常有意思的简介，可以更新一下欧',
    avatar:'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
  },
   {
    id:3,
    title:'text2的专栏',
    description:'这是的test1专栏，有一段非常有意思的简介，可以更新一下欧',
    // avatar:'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
  },
   {
    id:4,
    title:'text2的专栏',
    description:'这是的test1专栏，有一段非常有意思的简介，可以更新一下欧',
    avatar:'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
  },
]
export default defineComponent({
  name: 'App',
  components: {
    ColumnList,
    GlobalHeader
  },
  setup(){
    return{
      list:testData,
      currentUser
    }
  }
})
</script>

<style>

</style>
